]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
rfkill: fix turning off airplane mode from the menu
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 21 Apr 2014 16:58:56 +0000 (18:58 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 21 Apr 2014 17:10:54 +0000 (19:10 +0200)
The menu does not have a proxy anymore, it needs to go through
the manager.

https://bugzilla.gnome.org/show_bug.cgi?id=728512

js/ui/status/rfkill.js

index e14da8cea7a8d67b9034c8d6c60da4ca36c64fa4..b9d3eaf67fbf514bac7d7d583847c837c5552ac8 100644 (file)
@@ -83,7 +83,7 @@ const Indicator = new Lang.Class({
         this._item.icon.icon_name = 'airplane-mode-symbolic';
         this._item.status.text = _("On");
         this._offItem = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, function() {
-            this._proxy.AirplaneMode = false;
+            this._manager.airplaneMode = false;
         }));
         this._item.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop');
         this.menu.addMenuItem(this._item);